package bishi2016;

import java.util.Iterator;
import java.util.Scanner;
import java.util.TreeSet;

public class Huawei_NumberHandle {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int textNumber;
		TreeSet<Integer > list = new TreeSet<>(); //treeSet不仅保证无重，而且还是排序的
		while(scanner.hasNext()){
			list.clear();
			textNumber = scanner.nextInt();
			for (int i = 0; i < textNumber; i++) {
				list.add(scanner.nextInt());
			}
			Iterator<Integer> iterator = list.iterator();
			while(iterator.hasNext()){
				System.out.println(iterator.next());
			}
		}
		scanner.close();
	}
}
